home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15208 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  779 b 

  1. Path: hermes.is.co.za!news
  2. From: janinep@geoscience.org.za (Janine Prinsloo)
  3. Newsgroups: comp.lang.c++
  4. Subject: Array declaration
  5. Date: 4 Apr 1996 05:52:16 GMT
  6. Organization: Council for Geoscience
  7. Message-ID: <4jvo2g$mp2@hermes.is.co.za>
  8. NNTP-Posting-Host: 196.33.84.200
  9. X-Newsreader: WinVN 0.92.6+
  10.  
  11. I declared the following array:  dat[7][2048]
  12. In the program I made the stupid mistake of using loops going from 1 to 7
  13. and from 1 to 2048 instead of 0 to 6 and 0 to 2047. What I don't understand
  14. is that the program ran fine for a number of times (the program is repeatedly
  15. run by a batch program) before an error occurred.
  16.  
  17. I would like to know why an error didn't occur immediately the first time
  18. the program was run. 
  19.  
  20. Janine
  21.  
  22. (I used Borland C++ v4.0 to compile the program)
  23.